package cn.b.sky.common.model;

/** 
 * 
 * <strong>Title : Tree.java<br></strong>
 * <strong>Package : cn.b.sky.common.model<br></strong>
 * <strong>Description : </strong>树结构抽象类<br> 
 * <strong>Create on : 2015-8-10 下午6:32:31<br></strong>
 * <p>
 * @author lidapeng<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人 | 修改日期 | 修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
public abstract class Tree extends ImeCommon implements TreeInterface {
  /**
   * 节点ID
   */
  private String nodeId;

  /**
   * 节点名
   */
  private String name;

  /**
   * 链接、值，属性
   */
  private String url;

  /**
   * 图标样式 exp：icon-folder
   */
  private String icon;

  /**
   * 节点类型
   */
  private String type;

  /**
   * 是否已启用
   */
  private Boolean enabled;

  /**
   * 是否叶子节点
   */
  private Boolean isLeaf;

  /**
   * 父节点
   */
  private String pid;

  public Tree() {

  }

  public Tree(String nodeId, String name, String icon) {
    this.nodeId = nodeId;
    this.name = name;
    this.icon = icon;
  }

  @Override
  public String getNodeId() {
    return nodeId;
  }

  public void setNodeId(String nodeId) {
    this.nodeId = nodeId;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public String getIcon() {
    return icon;
  }

  public void setIcon(String icon) {
    this.icon = icon;
  }

  @Override
  public String getPid() {
    return pid;
  }

  public void setPid(String pid) {
    this.pid = pid;
  }

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public Boolean getEnabled() {
    return enabled;
  }

  public void setEnabled(Boolean enabled) {
    this.enabled = enabled;
  }

  public Boolean getIsLeaf() {
    return isLeaf;
  }

  public void setIsLeaf(Boolean isLeaf) {
    this.isLeaf = isLeaf;
  }

}
